// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
require('./assets/less/common.less')
import Vue from 'vue'
import App from './App'
import router from './router'
import registComponents from './regist-components'

import iView from 'iview'; // 导入组件库
import 'iview/dist/styles/iview.css'; // 导入样式
import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
import '../theme/index.css'
import Mint from 'mint-ui';
import 'mint-ui/lib/style.css'; 

import iviewArea from 'iview-area';

// import {apiSource} from './travel-api'
import * as filter from './filter';
// import * as store from './store';
import * as utils from './utils'

registComponents(Vue)
Vue.config.productionTip = false
Vue.use(iView);
Vue.use(ElementUI);
Vue.use(Mint);
Vue.use(iviewArea);


//注册vue的过滤器
Object.keys(filter).forEach(k=>Vue.filter(k, filter[k]));

// 挂载全局参数与方法
Vue.prototype.$utils = utils
// Vue.prototype.$store = store
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
